<?php
/**
 * Created by JetBrains PhpStorm.
 * User: feizheng
 * Date: 12-7-11
 * Time: 下午3:55
 * To change this template use File | Settings | File Templates.
 */
include_once("../Init.php");
include_once(ROOT . "/Lib/Mysql.class.php");
$insertData=array(
	'keyword'=>'test1_keyword',
	'articleSrc'=>'test_articleSrc',
	'metaKeywords'=>'testMetakey',
	'webTitle'=>'testWebTitlte',
	'sitePreFix'=>'sitePreFix'
);

$updateData=array(
	'keyword'=>'test1_keywordupdate',
	'articleSrc'=>'test_articleSrupdatec',
	'metaKeywords'=>'testMetakeyupdate',
	'webTitle'=>'testWebTitlteupdate',
	'sitePreFix'=>'sitePreFixupdate'
);

$db=new Mysql("localhost","root","","wordpress");
//var_dump($db->insert('afeios_cfg',$insertData));
//var_dump($db->delete('afeios_cfg','id=152'));
//var_dump($db->update('afeios_cfg',$updateData,'id=84'));
$q=$db->query("select * from afeios_cfg");
print_r($db->fetchArray($q));

